﻿using Lufei_CaterDAL;
using Lufei_CaterModel;

using System.Collections.Generic;


namespace Lufei_CaterBLL
{
    public class R_OrderInfo_Product_BLL
    {

        R_OrderInfo_Product_DAL dal = new R_OrderInfo_Product_DAL();

        /// <summary>
        /// 查询所有的订单信息
        /// </summary>
        /// <param name="orderID"></param>
        /// <returns></returns>
        public List<R_OrderInfo_Product> GetOrderInfoProducts(int orderID)
        {
            return dal.GetOrderInfoProducts(orderID);
        }


        /// <summary>
        /// 插入数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool InsertDate(R_OrderInfo_Product model)
        {
            return dal.InsertDate(model)>0;
        }

        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool DelteInfoByID(int id)
        {
            return dal.DelteInfoByID(id)>0;
        }
    }
}
